package com.y.report.service.basic.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.y.report.entity.basic.YReportApi;
import com.y.report.mapper.basic.YReportApiMapper;
import com.y.report.service.basic.YReportApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接口配置表 服务实现类
 * </p>
 *
 * @author y
 * @since 2021-09-25
 */
@Service
@Primary
public class YReportApiServiceImpl extends ServiceImpl<YReportApiMapper, YReportApi> implements YReportApiService {
    @Autowired
    private YReportApiMapper yReportApiMapper;

    @Override
    public int appendMultiple(List<YReportApi> obj) {
        return yReportApiMapper.appendMultiple(obj);
    }

    @Override
    public int modifyCondition(YReportApi newObj, YReportApi oldObj) {
        return yReportApiMapper.modifyCondition(newObj, oldObj);
    }

    @Override
    public List<YReportApi> queryCondition(YReportApi eqObj, YReportApi likeObj, IPage<YReportApi> page) {
        return yReportApiMapper.queryCondition(eqObj, likeObj, page);
    }
}
